package cn.lf.android.lawfirm.utils;

import java.io.IOException;

/**
 * @version create time：2016-11-8 下午5:09:06
 *
 */
public class MIUIUtils {
	
	private static final String KEY_MIUI_VERSION_CODE = "ro.miui.ui.version.code";
		private static final String KEY_MIUI_VERSION_NAME = "ro.miui.ui.version.name";
		private static final String KEY_MIUI_INTERNAL_STORAGE = "ro.miui.internal.storage";

		public static boolean isMIUI() {
			try {
				final BuildProperties prop = BuildProperties.newInstance();
				return prop.getProperty(KEY_MIUI_VERSION_CODE, null) != null
						|| prop.getProperty(KEY_MIUI_VERSION_NAME, null) != null
						|| prop.getProperty(KEY_MIUI_INTERNAL_STORAGE, null) != null;
			} catch (final IOException e) {
				return false;
			}
		}
}
